package goods

import (
	"orm_gin/apis/goods"

	"github.com/gin-gonic/gin"
)

func GoodsApi(r *gin.Engine, fc gin.HandlerFunc) {
	g := r.Group("/goods")
	{
		g.GET("", goods.GetGoods)
		g.POST("", goods.AddGoods)
		g.PUT("", goods.UpdateGoods)
		g.DELETE("", goods.DelGoods)
		g.GET("/all", goods.GetGoodsAll)
	}
}
